<?php
class Empeval_Exception_Core extends Exception {
	
	const TYPE_NOTICE = 'information';
	
	protected $type = null;
	protected $doLog = false;
	protected $userMessage = '';
	
	public function __construct() {
		if ($this->doLog) {
			$logger = new Empeval_Logger();
			$logger->logException($this);
		}
	}
	
	public function getType() {
		return ($this->type === null) ? self::TYPE_NOTICE : $this->type;
	}
	
	public function getUserMessage() {
		return $this->userMessage;
	}
	
}